/*
 * @Author: zhuhaohua 250293786@qq.com
 * @Date: 2024-06-11 15:41:02
 * @LastEditors: DeluxePig 250293786@qq.com
 * @LastEditTime: 2024-06-26 00:29:51
 * @FilePath: \easy-talk\src\api\user.js
 * @Description: 消息接口
 */
import request from '@/utils/request'

// 获取已交互过的知识库列表(消息中心)
export function getletterApi(params) {
  return request({
    url: '/users-api/chat/model/knowledge/history',
    method: 'get',
    params
  })
}

// 取回聊天上文(历史)信息
export function getQuestionApi(params) {
  return request({
    url: '/users-api/chat/question/history',
    method: 'GET',
    params
  })
}
// 取回聊天上文(历史)信息
export function delHistoryApi(params) {
  return request({
    url: '/users-api/chat/model/knowledge/history',
    method: 'delete',
    params
  })
}

// 谁跟我的知识库聊过天
export function knowledgeChatApi(params) {
  return request({
    url: '/users-api/model/knowledge/user-chat',
    method: 'get',
    params
  })
}
// 知识库跟他聊了什么
export function chatHistoryApi(params) {
  return request({
    url: '/users-api/model/knowledge/user-chat-history',
    method: 'get',
    params
  })
}
// 知识库跟他聊了什么
export function delUserChatApi(data) {
  return request({
    url: '/users-api/model/knowledge/user-chat',
    method: 'DELETE',
    data
  })
}
